package bill

import (
	"crmeb-common/global"
	"math/big"
)

// SummaryFinancialStatements 财务流水汇总表
type SummaryFinancialStatements struct {
	global.BaseModel
	RechargeAmount big.Float `json:"rechargeAmount" gorm:"column=recharge_amount;comment:会员充值金额"`

	RechargeNum int32 `json:"rechargeNum" gorm:"column=recharge_num;comment:充值笔数"`

	WechatPayAmount big.Float `json:"wechatPayAmount" gorm:"column=wechat_pay_amount;comment:微信支付金额"`

	WechatPayNum int32 `json:"wechatPayNum" gorm:"column=wechat_pay_num;comment:微信支付笔数"`

	AliPayAmount big.Float `json:"aliPayAmount" gorm:"column=ali_pay_amount;comment:支付宝支付金额"`

	AliPayNum int32 `json:"aliPayNum" gorm:"column=ali_pay_num;comment:支付宝支付笔数"`

	MerchantSplitSettlement big.Float `json:"merchantSplitSettlement" gorm:"column=merchant_split_settlement;comment:商户分账结算金额"`

	MerchantSplitSettlementNum int32 `json:"merchantSplitSettlementNum" gorm:"column=merchant_split_settlement_num;comment:商户分账结算笔数"`

	BrokerageSettlement big.Float `json:"brokerageSettlement" gorm:"column=brokerage_settlement;comment:佣金结算金额"`

	BrokerageSettlementNum int32 `json:"brokerageSettlementNum" gorm:"column=brokerage_settlement_num;comment:佣金结算笔数"`

	OrderRefundAmount big.Float `json:"orderRefundAmount" gorm:"column=order_refund_amount;comment:订单退款金额"`

	OrderRefundNum int32 `json:"orderRefundNum" gorm:"column=order_refund_num;comment:订单退款笔数"`

	IncomeAmount big.Float `json:"incomeAmount" gorm:"column=income_amount;comment:收入金额"`

	PayoutAmount big.Float `json:"payoutAmount" gorm:"column=payout_amount;comment:支出金额"`

	IncomeExpenditure big.Float `json:"incomeExpenditure" gorm:"column=income_expenditure;comment:日收支"`

	DataDate string `json:"dataDate" gorm:"column=data_date;comment:日期：年-月-日"`
}
